
<?php $form=$this->beginWidget('CActiveForm', array(
							'id'=>'login-form',
							//'action'=>'/site/login',			
							'enableAjaxValidation'=>true,
		)); ?>
		  <fieldset>
			<legend>Pupils Login Form</legend>
			<div class="row">
			
			 <?php echo $form->labelEx($model,'username'); ?>
			<?php echo $form->textField($model,'username',array('id'=>'pupilname')); ?>
			<?php echo $form->error($model,'username'); ?>
			
			</div>
			<div class="row">
			  <?php echo $form->labelEx($model,'password'); ?>
			  <?php echo $form->passwordField($model,'password',array('id'=>'pupilpass')); ?>
			  <?php echo $form->error($model,'password'); ?>
			</div>
			<div class="row rememberMe">
		
			<?php echo $form->checkBox($model,'rememberMe',array('id'=>'pupilremember')); ?>
			 	<?php echo $form->label($model,'rememberMe'); ?>
				<?php echo $form->error($model,'rememberMe'); ?>
			</div>
			
			<p>
			
				<?php echo CHtml::submitButton('Login',array('id'=>'pupillogin')); ?>
				  &nbsp;
			  <input type="reset" name="pupilreset" id="pupilreset" value="Reset" />
		
			
			  
			
			</p>
		  </fieldset>
		<?php $this->endWidget(); ?>
		